package GIUmk2;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.util.Observable;
import java.util.Observer;

import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.border.Border;

public class FullFrame extends JFrame implements Observer {

	/**
	 * Serializing information.
	 */
	private static final long serialVersionUID = -9154875862291755857L;

	private SidePanel my_buttons;
	
	private MainPanel my_display;
	
	@Override
	public void update(Observable arg0, Object arg1) {
		// TODO Auto-generated method stub

	}
	
	public FullFrame() {
		super();
		this.setPreferredSize(new Dimension(850, 600));
		Border outline = BorderFactory.createLineBorder(Color.black);
		my_buttons = new SidePanel(this);
		my_buttons.updateButtons(2);
		my_display = new MainPanel(this);
		my_display.setBorder(outline);
		my_display.updateMainPanel(MainPanel.LAYOUT_LABELS[0]);
		this.setLayout(new BorderLayout());
		this.add(my_buttons, BorderLayout.WEST);
		this.add(my_display);
		this.pack();
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setVisible(true);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new FullFrame();
		
	}

}
